package com.yc.mapper;

import com.yc.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Title:<br>
 * Description: <br>
 * Author:陈圆(chenyuan@bosssoft.com.cn) <br>
 * Date:2020/9/24
 */
@Repository
@Mapper
public interface UserMapper {

    int insertUser(@Param("user") User u);

    User selectUser(String id);

    List<User> listUsers();

    int deleteUserById(String userId);

    int updateUser(User user);
}
